package cn.itrip.common;
//随机数
public class RandomUtils {
    public static String random(int length){
        if(length > 8){
            length = 8;
        }
        String n = Math.random() + "";
        return n.substring(2,2+length);
    }

    public static void main(String[] args){
        for(int i = 0;i < 10;i++){
            System.out.println(random(6));
        }
    }
}
